package com.guoshengdeu.door.service.impl;

import com.guoshengdeu.door.entity.*;
import com.guoshengdeu.door.mapper.ConfigVideoMapper;
import com.guoshengdeu.door.service.IConfigVideoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yfly
 * @since 2021-06-01
 */
//@Service(value = "videoService")
@Service
public class ConfigVideoServiceImpl extends ServiceImpl<ConfigVideoMapper, ConfigVideo > implements IConfigVideoService {

    @Resource
    ConfigVideoMapper configVideoMapper;

    //去重查询分类
    @Override
    public List<VoConfigVideoCatalog> selectVideoCatalog() {
        return configVideoMapper.selectVideoCatalog();
    }

    //去重查询基地
    @Override
    public List<VoConfigVideoBase> selectVideoBase() {
        return configVideoMapper.selectVideoBase();
    }

    //去重查询学校
    @Override
    public List<VoConfigVideoSchool> selectVideoSchool() {
        return configVideoMapper.selectVideoSchool();
    }

    //去重查询id、类别、名称
    @Override
    public List<VoConfigVideo> selectICN() {
        return configVideoMapper.selectICN();
    }
}
